projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d8f1e2
)
driver:i2c:s3c24x0: fix clock init for hsi2c
author
Piotr Wilczek
<
[email protected]
>
Wed, 20 Nov 2013 09:43:50 +0000
(10:43 +0100)
committer
Heiko Schocher
<
[email protected]
>
Thu, 5 Dec 2013 06:39:38 +0000
(07:39 +0100)
Fix clock value initialisation for Exynos other than Exynos5 for hsi2c.
Signed-off-by: Piotr Wilczek <
[email protected]
>
Signed-off-by: Kyungmin Park <
[email protected]
>
Cc: Minkyu Kang <
[email protected]
>
Cc: Heiko Schocher <
[email protected]
>
drivers/i2c/s3c24x0_i2c.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/s3c24x0_i2c.c
b/drivers/i2c/s3c24x0_i2c.c
index 5dc35e7fb2ea31d559d270106ddbba2ce488c79a..1e9dba0b9332b2eb16b3701493c049b1bfb22485 100644
(file)
--- a/
drivers/i2c/s3c24x0_i2c.c
+++ b/
drivers/i2c/s3c24x0_i2c.c
@@
-303,8
+303,10
@@
static int hsi2c_get_clk_details(struct s3c24x0_i2c_bus *i2c_bus)
unsigned int i = 0, utemp0 = 0, utemp1 = 0;
unsigned int t_ftl_cycle;
-#if
defined CONFIG_EXYNOS5
+#if
(defined CONFIG_EXYNOS4 || defined CONFIG_EXYNOS5)
clkin = get_i2c_clk();
+#else
+ clkin = get_PCLK();
#endif
/* FPCLK / FI2C =
* (CLK_DIV + 1) * (TSCLK_L + TSCLK_H + 2) + 8 + 2 * FLT_CYCLE